Class Functions.ConstantFunction<E>
- java.lang.Object
-
- edu.claflin.finder.algo.jungutils.Functions.ConstantFunction<E>
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate Evalue
-
Constructor Summary
Constructors Constructor Description ConstantFunction(E value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eapply(java.lang.Object from)booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
value
private final E value
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConstantFunction
public ConstantFunction(E value)
-
-
Method Detail
-
apply
public E apply(java.lang.Object from)
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-